﻿using System.Collections.Generic;

namespace LxCFD
{
    public class ExcuteCenter : IReset
    {

        public List<ExcuteBase> ExcuteAfterAll_Fixed = new List<ExcuteBase>();
        public void ExcuteBeforeStep()
        {

        }
        public void ExcuteAfterStep()
        {

        }
        public void ExcuteAfterAll()
        {
            foreach (var e in ExcuteAfterAll_Fixed)
            {
                e.Excute();
            }
        }

        public void Reset(ResetTypes resetType)
        {
            switch (resetType)
            {
                case ResetTypes.ClearToLoadSimulation:
                case ResetTypes.ClearToLoadMesh:
                case ResetTypes.ClearFields:
                case ResetTypes.UpdateSolveCenter:
                   //clear reset
                    break;
                case ResetTypes.None:
                default:
                    break;
            }
        }
    }
}
